package com.woniuxy.pojo;


import org.apache.log4j.Logger;

public class Person {
    private Logger logger= Logger.getLogger(this.getClass());
    private String name;
    private int age;

    public void init(){
        logger.info("初始化方法");
    }
    public void destory(){
        logger.info("销毁方法");
    }
    public Person(){
        logger.info("实例化");
    }
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    @Override
    public String toString() {
        return "Person{" +
                "name='" + name + '\'' +
                ", age=" + age +
                '}';
    }
}
